﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="Site.Master" CodeBehind="Category.aspx.cs" Inherits="FreeLancer.HRB.WebApp.Category" %>

<%@ Register Assembly="DevExpress.Web.ASPxEditors.v8.1, Version=8.1.1.0, Culture=neutral, PublicKeyToken=49d90c14d24271b5"
  Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<%@ Register Src="~/UserControls/NewsBrowser.ascx" TagName="NewsBrowser" TagPrefix="uc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <table style="width: 100%">
    <tr>
      <td style="vertical-align:top;">
        <div>
          <div class="category-container">
            <div class="category-header">
              <h1 class="category-title">
                <a class="more-news" id="anchorCategoryTitle" runat="server"></a>
                <a class="more-news" style="text-transform:none" 
                  id="anchorAddNews" runat="server"> - <%=Resources.labels.compose %></a>
              </h1>
            </div>
            <div class="category-content">
            <uc:NewsBrowser runat="server" ID="NewsBrowser" 
              DataSourceId="DataSourcePosts"
              MoreNewsVisible="false" TextField="Description"
              PagerVisible="true" RowPerPage="5" />
            </div>
          </div>
        </div>
      </td>
    </tr>
  </table>
  <%--<data:PostsDataSource runat="server" ID="PostsDataSource" 
    SelectMethod="GetPostByCategoryIdLanguageIdBE" EnablePaging="true">
  </data:PostsDataSource>--%>
  <asp:SqlDataSource runat="server" ID="DataSourcePosts"
    SelectCommand="_hrbPosts_GetPostByDateCreated" SelectCommandType="StoredProcedure"
    ConnectionString="<%$ ConnectionStrings:netTiersConnectionString %>">
  </asp:SqlDataSource>
  <div>
    <div id="goto-container">
      <div id="goto-title">
        <span><%=Resources.labels.calendarPickNews %></span>
      </div>
      <dxe:ASPxDateEdit ID="ASPxDateEdit" runat="server"
         CalendarProperties-ClearButtonText="<%$ Resources:labels, calendarClear %>"
         CalendarProperties-TodayButtonText="<%$ Resources:labels, calendarToday %>" CssClass="inline"
         CalendarProperties-FirstDayOfWeek="Monday"
         CalendarProperties-ShowDayHeaders="false">
      </dxe:ASPxDateEdit>
      <div style="margin-top:10px;">
        <%--<dxe:ASPxButton ID="ASPxBtnView" runat="server" Text="Xem" CssClass="inline" Width="70px">
        </dxe:ASPxButton>--%>
        <asp:Button ID="btnView" runat="server" Text="<%$ Resources:labels, calendarView %>" OnClick="btnView_Click" Width="70px"/>
      </div>
    </div>
  </div>
</asp:Content>
